<?php

include_once($_SERVER["DOCUMENT_ROOT"]."/admin/pub/header.php");
include_once($_SERVER["DOCUMENT_ROOT"]."/public/function.php");
$config = include_once($_SERVER["DOCUMENT_ROOT"]."/public/config.php");

$id = $_GET['id'];

$res = sele($config,'tupian',"where id={$id}")[0];

?>
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/jscss/admin/design/">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="/jscss/admin/design/">作品管理</a><span class="crumb-step">&gt;</span><span>新增作品</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                
            <form action="doupda.php" method="post" id="myform" name="myform" enctype="multipart/form-data">
            <input type="hidden" name="id" value="<?php echo $res['id']?>">
                    <table class="insert-tab" width="100%">
                        <tbody>
                        <!--<tr>
                            <th width="120"><i class="require-red">*</i>分类：</th>
                            <td>
                                <select name="colId" id="catid" class="required">
                                    <option value="">请选择</option>
                                    <option value="19">精品界面</option><option value="20">推荐界面</option>
                                </select>
                            </td>
                        </tr>-->

                            <tr>
                                <th><i class="require-red">*</i>头像：</th>
                                <td><input name="pic" id="" type="file"><?php echo $res['pic']?><!--<input type="submit" onclick="submitForm('/jscss/admin/design/upload')" value="上传图片"/>--></td>
                            </tr>

                            <tr>
                                <th><i class="require-red">*</i>标题：</th>
                                <td>
                                    <input class="common-text required" id="title" name="title" size="50" value="<?php echo $res['title']?>" type="text">
                                </td>
                            </tr>
                            
                            
                            <tr>
                                <th>描述：</th>
                                <td><textarea name="miaoshu" class="common-textarea" id="content" cols="30" style="width: 98%;" rows="10"><?php echo $res['miaoshu']?></textarea></td>
                            </tr>

                            <tr>
                                <th>发表时间：</th>
                                <td><input class="common-text" name="ctime" size="50" value="<?php echo $res['ctime']?>" type="text"></td>
                            </tr>

                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>


            </div>
        </div>

    </div>
    <!--/main-->
<?php

include_once($_SERVER["DOCUMENT_ROOT"]."/admin/pub/footer.php");
?>